class TrainStationPresenter:
    def __init__(self, data):
        self.data = data

    def as_dict(self):
        return {
            "index": self.data.index,
            "trainNo": self.data.train_no,
            "name": self.data.station_name,
            "arrTime": self.data.arrival_time,
            "depTime": self.data.departure_time,
            "price": self.data.price,
        }
